#ifndef NETWORKPROCESSING_H
#define NETWORKPROCESSING_H
#include <QtWidgets>
#include <QAbstractSocket>
#include <QTcpServer>
#include "information.h"
class QTcpSocket;
class NetworkProcessing : public QTcpServer
{
    Q_OBJECT
public:
    NetworkProcessing();
public slots:
    void start();
    void acceptConnection();
    void updateServerProgress();
    void displayError(QAbstractSocket::SocketError socketError);
    void sendServerTcpConnectStatic(bool);
    void sendClientStatic();
    void send(QJsonObject sendJson);
signals:
    void serverTcpConnectStatic(bool);
    void ClientStatic();
private:
    QTcpServer m_tcpServer;
    QTcpSocket *m_tcpServerConnection;
    Information & s_Information;
};

#endif // NETWORKPROCESSING_H
